@@ -104,7 +104,9 @@ module Agents |
||
104 | 104 |
|
105 | 105 |
def ping(url) |
106 | 106 |
result = faraday.get url |
107 |
- result.status != nil ? result : nil |
|
107 |
+ if result.status != 0 |
|
108 |
+ return result |
|
109 |
+ end |
|
108 | 110 |
rescue |
109 | 111 |
nil |
110 | 112 |
end |